/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package encaps.entities;

import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalObject;
import javax.ejb.RemoveException;

/**
 *
 * @author Artem
 */
public interface MovieLocal extends EJBLocalObject {
    Long getId();
    String getTitle();
    void setTitle(String title);
    String getPicture();
    void setPicture(String pic);
    String getGenres();
    void setGenre(String genre);
    Date getRussianReleaseDate();
    void setRussianReleaseDate(Date russianReleaseDate);
    Date getWorldReleaseDate();
    void setWorldReleaseDate(Date worldReleaseDate);
    String getCountries();
    void setCountries(String countries);
    String getStudio();
    void setStudio(String studio);
    Integer getRussianCash();
    void setRussianCash(Integer russianCash);
    Integer getWorldCash();
    void setWorldCash(Integer worldCash);
    String getLength();
    void setLength(Long length);
    String getDesctiption();
    void setDescription(String description);
    Double getRating();
    void addRating(Double rating, Long user_id, Date date) throws CreateException;
 
    String stringRepresentation();
    void addComment(Long user_id, String content, Date date) throws CreateException;
    void removeComment(Long comment_id) throws RemoveException;
    void updateComment(Long comment_id, String content, Date date);
    <Comment>HashMap getComments();    
}
